<?php
	/**
	 * Value object representation of a group module.
	 */
	class ModuleVO {
		
		var $_explicitType="vo.ModuleVO";
		
		/** The unique ID of the module. */
		var $moduleUID;
		
		/** The name of the module. */
		var $moduleName;
		
		/** The URL of the module. */
		var $moduleURL;
		
		/** Creates a new instance of a ModuleVO. */
		public function ModuleVO() {}
		
		/**
		 * Maps a database record to a ModuleVO.
		 * @param $row The record to map to a ModuleVO.
		 * @return A new mapped instance of a ModuleVO.
		 */
		public static function mapObject($row) {
			
			$vo = new ModuleVO();
			
			$vo->moduleUID 		= $row["moduleUID"];
			$vo->moduleName 	= $row["moduleName"];
			$vo->moduleURL 		= $row["moduleURL"];
			
			return $vo;
		}
	}
?>